package edu.njust.Service.reservation;

import edu.njust.domain.Reservation;
import edu.njust.domain.StayRegister;

import java.util.List;

public interface ReservationService {
    //新增预订
    public boolean insertAll(Reservation reservation);
    //分页和模糊查询
    public List<Reservation> pageFuzzyselect(String passengerName, int predetermineStateID,
                                             int start, int pageSize);
    //查询总条数
    public int countFuzzyselect(String passengerName, int predetermineStateID);
    //id查询
    public Reservation findById(int id);
    //根据 旅客id 来查询
    public List<Reservation> findLvKeId(int id);
    //id删除
    public boolean deleteById(int id);
    //查询全部数据 无分页
    public List<Reservation> selectAll();
    //修改预订到时提示
    public boolean updateRemind(int id);
    //修改预订状态1 变已安排
    public boolean updatePredetermineStateIDone(int id);
    //修改预订状态2 变未安排
    public boolean updatePredetermineStateIDtwo(int id);
    //修改房间
    public boolean updateroomID(int id, int roomID);

    //查找出需要登记入住的订单
    public StayRegister findStayRegister(int id);


}
